package com.ch08a;

public class ListClient {
	public static void main(String[] args) { // (12)
		MyLinkedList list = new MyLinkedList(); // (13)
		MyLinkedList.Node node1 = list.makeInstance("node1", null); // (14)
		System.out.println(node1); // (15)
		MyLinkedList.Node nodeX
		 = new MyLinkedList().new Node("nodeX", node1); // (16) Not OK.
		MyLinkedList.Node node2 = list.new Node("node2", node1); // (17)
		System.out.println(node2); // (18)
	}
}
